import request from "@/utils/request.js"

// 查询隐患列表
export function getWarnList(query, data) {
  return request({
    url: `/system/task/selectWarnList?pageNum=${query.pageNum}&pageSize=${query.pageSize}`,
    method: "post",
    data,
  });
}


// 查询隐患列表状态数据
export function WarnDisposalCount(query, data) {
  return request({
    url: `/system/task/getWarnDisposalCount?pageNum=${query.pageNum}&pageSize=${query.pageSize}`,
    method: "post",
    data,
  });
}

// 检查单位
export function selectDeptListByUser(data) {
  return request({
    url: `/system/dept/selectDeptListByUser`,
    method: "post",
    data,
  });
}

//处置任务操作
export function updateTaskDisposal(data) {
  return request({
    url: "/system/disposal/updateTaskDisposal",
    method: "post",
    data,
  });
}